package com.atguigu.exercise1;

/**
 * @author : leimingchao
 * @date Date : 2021年08月17日 23:01
 */
public class TriAngleTest {

    public static void main(String[] args) {
        TriAngle triAngle = new TriAngle();
        triAngle.setBase(2.0);
        triAngle.setHeight(2.4);
        // triAngle.base = 2.5;
        // triAngle.height = 4.3;
        System.out.println("base：" + triAngle.getBase() + ",height：" + triAngle.getHeight());

        TriAngle triAngle1 = new TriAngle(5.1, 5.6);
        System.out.println("base：" + triAngle1.getBase() + ",height：" + triAngle1.getHeight());

    }
}
